#include "widget.h"
#include "ui_widget.h"
#include <QPushButton>

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);

    this->setWindowTitle("signal_01");
    this->resize(600 , 600);

    QPushButton* button = new QPushButton("关闭窗口" , this);
    button->move(200 , 250);
    button->setFixedSize(200,100);
    connect(button , &QPushButton::clicked , this , &QWidget::close);
}

Widget::~Widget()
{
    delete ui;
}
